const express = require('express');

const router = express.Router();

const { addHobby,getHobbies,deleteHobby} = require('../controller/hobbyCtr')

//增加
router.post('/create',addHobby)
//查询
router.get('/query',getHobbies)
//删除
router.get('/del',deleteHobby)

module.exports = router;